<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 解构字符串

        let str3 = new String("这是一段文字");

        // console.log(str3);

        console.log(String.prototype.toString);

        let {toString} = str3;

        console.log(toString);
        
        console.log(String.prototype.toString === toString);
    </script>
</body>
</html>